package com.happycat.mobile.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
/**
 * Module: UserGiftDetail.java
 *
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-08-01
 * @Descriptions:
 */
@Data
@TableName(value = "user_gift_detail")
@ApiModel
public class UserGiftDetail  {
	

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value="")
	private Long id;
	
	
	@ApiModelProperty(value="赠送者id")
	@TableField("give_id")
	private Long giveId;
	
	
	@ApiModelProperty(value="接收者id")
	@TableField("receiver_id")
	private Long receiverId;
	
	
	@ApiModelProperty(value="礼物id")
	@TableField("gift_id")
	private Long giftId;
	
	
	@ApiModelProperty(value="",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@TableField("create_time")
	private Date createTime;


	@ApiModelProperty(value="礼物来源: 背包，聊天室")
	@TableField("source")
	private String source;


    @ApiModelProperty(value="礼物数量")
    private Integer giftNumber;
	
}